#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int swap(int* a,int* b)
{
	int t;
	t = *a; *a = *b; *b = t;
}
int exchange(int* p1, int* p2, int* p3)
{
	if (*p1 < *p2) swap(p1, p2);
	if (*p1 < *p3) swap(p1, p3);
	if (*p2 < *p3) swap(p2, p3);
}

int main()
{
	int i, j, k;
	int* p1, * p2, * p3;
	scanf("%d %d %d",&i,&j,&k);
	p1 = &i; p2 = &j; p3 = &k;
	exchange(p1, p2, p3);
	printf("%d %d %d", *p1,*p2,*p3);
	return 0;
}